package com.library.bookservice.domain.port;
import com.library.bookservice.domain.model.Book;
import java.util.List;
/**
 * 图书服务端口
 * 定义图书业务服务的契约接口
 */
public interface BookServicePort {
    Book createBook(Book book);
    Book getBookById(Long id);
    Book getBookByIsbn(String isbn);
    List<Book> getAllBooks();
    List<Book> getBooksByAuthor(String author);
    List<Book> getBooksByGenre(String genre);
    Book borrowBook(Long bookId);
    Book returnBook(Long bookId);
    void deleteBook(Long id);
}